package com.ktwlsoft.archivemanage.domain.dao.repository.businessInspect;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.ktwlsoft.archivemanage.domain.dao.entity.businessInspect.InspectSubjectItem;

/**
 * inspect_subject_item--业务检查题目选项
 *
 * @author zhuhe on 2019-11-12 15:00:46
 * @version 1.0
 */
@Mapper
public interface IInspectSubjectItemMapper {
	
	/**
	 * 查询列表 on 2019-11-12 15:00:46
	 * @param inspectSubjectItem inspectSubjectItem
	 * @return List<InspectSubjectItem>
	 */
	List<InspectSubjectItem> findList(InspectSubjectItem inspectSubjectItem);
	
	
	/**
	 * 根据id查询信息 on 2019-11-12 15:00:46
	 * @param id id
	 * @return InspectSubjectItem
	 */
	InspectSubjectItem getById(Long id);

	/**
	 * 根据题目ID查询信息 on 2019-11-12 15:00:46
	 * @param subjectId	题目ID
	 * @return InspectSubjectItem
	 */
	List<InspectSubjectItem> getBySubjectId(Long subjectId);
	
	/**
	 * 根据id删除信息 on 2019-11-12 15:00:46
	 * @param id id
	 * @return int
	 */
	int deleteById(Long id);
	
	/**
	 * 根据id集合批量删除信息 on 2019-11-12 15:00:46
	 * @param ids ids
	 * @return int
	 */
	int deleteByIds(List<Long> ids);

	/**
	 * 插入 on 2019-11-12 15:00:46
	 * @param inspectSubjectItem inspectSubjectItem
	 * @return int
	 */
    int insert(InspectSubjectItem inspectSubjectItem);

	/**
	 * 批量插入 on 2019-04-23 10:57:02
	 * @param list list
	 * @return int
	 */
	int manyInsert(List<InspectSubjectItem> list);

	/**
	 * 更新 on 2019-11-12 15:00:46
	 * @param inspectSubjectItem inspectSubjectItem
	 * @return int
	 */
    int update(InspectSubjectItem inspectSubjectItem);
}
